

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=&#34;auto&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/cat.png">
  <link rel="icon" href="/img/cat.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="">
  <meta name="author" content="高腾飞">
  <meta name="keywords" content="">
  
  <title>基于hexo+Github/Gitee创建个人网站 - Mr.Gao&#39;s Blog</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4.0.0/github-markdown.min.css" />
  <link  rel="stylesheet" href="/lib/hint/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10.7.2/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
  



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"example.com","root":"/","version":"1.8.11","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.4.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>Mr.Gao's Blog</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>
	
	<!-- 天气网 -->
	<!-- 添加天气, url=https://cj.weather.com.cn/ -->

<div id="he-plugin-simple"></div>
<script>
WIDGET = {
  "CONFIG": {
    "modules": "01234",
    "background": "5",
    "tmpColor": "FFFFFF",
    "tmpSize": "16",
    "cityColor": "FFFFFF",
    "citySize": "16",
    "aqiColor": "FFFFFF",
    "aqiSize": "16",
    "weatherIconSize": "24",
    "alertIconSize": "18",
    "padding": "10px 10px 10px 10px",
    "shadow": "0",
    "language": "auto",
    "fixed": "false",
    "vertical": "top",
    "horizontal": "left",
    "key": "78341ec2843c4a9fadb898bc69243c69"
  }
}
</script>
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>

	
    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="基于hexo+Github/Gitee创建个人网站">
              
            </span>

            
              <div class="mt-3">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-author" aria-hidden="true"></i>
      高腾飞
    </span>
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2021-08-13 17:46" pubdate>
        2021年8月13日 下午
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      1.4k 字
    </span>
  

  
    
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      15
       分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">基于hexo+Github/Gitee创建个人网站</h1>
            
              <p class="note note-info">
                
                  本文最后更新于：2 天前
                
              </p>
            
            <div class="markdown-body">
              <h1 id="创建博客前置需求"><a href="#创建博客前置需求" class="headerlink" title="创建博客前置需求"></a>创建博客前置需求</h1><ul>
<li>已经安装了gitbash</li>
<li>会使用gitbash</li>
<li>已经配置好SSH</li>
<li>已经安装Node.js</li>
<li>会使用npm</li>
</ul>
<p>如果不会的话可以点后面的链接去学习。</p>
<h1 id="开始创建博客"><a href="#开始创建博客" class="headerlink" title="开始创建博客"></a>开始创建博客</h1><h2 id="1-创建博客"><a href="#1-创建博客" class="headerlink" title="1 创建博客"></a>1 创建博客</h2><h3 id="1-1安装hexo"><a href="#1-1安装hexo" class="headerlink" title="1.1安装hexo"></a>1.1安装hexo</h3><p>全局安装hexo-cli</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">npm install hexo-cli -g<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fsQ63Q"><img src="https://z3.ax1x.com/2021/08/13/fsQ63Q.png" srcset="/img/loading.gif" lazyload alt="fsQ63Q.png"></a></p>
<p>安装完成就能看到绿框里的东西了。<br>治愈那两个警告不用管它，因为fsevent是mac osx的，在Windows或者Linux下会有警告，忽略即可。</p>
<h3 id="1-2创建好博客文件夹"><a href="#1-2创建好博客文件夹" class="headerlink" title="1.2创建好博客文件夹"></a>1.2创建好博客文件夹</h3><p><strong>1.创建</strong><br>有两种方法：</p>
<ul>
<li><p>进入你要建博客的文件夹</p>
<p>1.打开命令行工具</p>
<p>​         可以使用gitbash,直接在文件夹里右键→git bash</p>
<p>​        也可以使用cmd,在文件夹地址栏输入cmd回车</p>
<p>2.创建并初始化一个存放博客代码的文件夹</p>
<figure class="highlight nginx"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs nginx"><span class="hljs-attribute">hexo</span> init 文件夹名字<br></code></pre></td></tr></table></figure>

<p>3.进入这个文件夹</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">cd 文件夹名字<br></code></pre></td></tr></table></figure></li>
<li><p>进入你要建博客的文件夹</p>
<p>1.创建一个存放博客代码的文件夹，并进入文件夹</p>
<p>2.打开命令行工具</p>
<p>3.初始化</p>
<figure class="highlight nginx"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs nginx"><span class="hljs-attribute">hexo</span> init<br></code></pre></td></tr></table></figure></li>
</ul>
<p><strong>2.安装依赖</strong></p>
<p>进入你已经创建的存放博客代码的文件夹</p>
<p>然后，安装一些依赖：</p>
<figure class="highlight nginx"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs nginx"><span class="hljs-attribute">npm</span> install<br></code></pre></td></tr></table></figure>

<h2 id="2-新建文章"><a href="#2-新建文章" class="headerlink" title="2 新建文章"></a>2 新建文章</h2><h3 id="2-1-新建文章"><a href="#2-1-新建文章" class="headerlink" title="2.1 新建文章"></a>2.1 新建文章</h3><p>现在先不用管博客美化的问题，现在的第一件事情是可以看到也就是在浏览器可以预览到自己的博客，并且能推送到GitHub/Gitee上并且能访问到。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">hexo new &quot;文章名&quot;<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fyAnAJ"><img src="https://z3.ax1x.com/2021/08/14/fyAnAJ.png" srcset="/img/loading.gif" lazyload alt="fyAnAJ.png"></a></p>
<p>创建完毕，成功之后会告诉你已经在_post文件夹下创建好了。打开看一下，里边的helloworld是默认就有的，你可以先不用管，不想看可以直接删了。</p>
<p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fyAQ91"><img src="https://z3.ax1x.com/2021/08/14/fyAQ91.png" srcset="/img/loading.gif" lazyload alt="fyAQ91.png"></a></p>
<p>打开你新建的文件给它写几句内容。你不想写可以先不写。</p>
<p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fyAUNd"><img src="https://z3.ax1x.com/2021/08/14/fyAUNd.png" srcset="/img/loading.gif" lazyload alt="fyAUNd.png"></a></p>
<p>tags：最好填写自己的标签分类</p>
<h3 id="2-2-生成静态页面"><a href="#2-2-生成静态页面" class="headerlink" title="2.2 生成静态页面"></a>2.2 生成静态页面</h3><p>刚才你所创建的文件以及写入的内容均在一个文本文档里面，这一步就是将你的文本文件解析为静态网页。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">hexo generate# 生成静态网页<br></code></pre></td></tr></table></figure>

<h3 id="2-3-本地预览"><a href="#2-3-本地预览" class="headerlink" title="2.3 本地预览"></a>2.3 本地预览</h3><p>如果你不想在本地看一下是什么效果，可以跳过这一步。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs shell">hexo clean# 清理一下<br>hexo server# 启动本地服务<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fyEF5d"><img src="https://z3.ax1x.com/2021/08/14/fyEF5d.png" srcset="/img/loading.gif" lazyload alt="fyEF5d.png"></a></p>
<p>注意不要关闭命令工具，不要按Ctrl + C，在浏览器输入提示你的地址你就可以看到页面了，看完之后不需要了，你可以回到命令工具，按Ctrl + C停止后台服务。</p>
<h2 id="3-部署到GitHub-Gitee"><a href="#3-部署到GitHub-Gitee" class="headerlink" title="3 部署到GitHub/Gitee"></a>3 部署到GitHub/Gitee</h2><h3 id="3-1-下载hexo-deployer-git"><a href="#3-1-下载hexo-deployer-git" class="headerlink" title="3.1 下载hexo-deployer-git"></a>3.1 下载hexo-deployer-git</h3><p>使用github的也知道，本地上传文件给远程仓库是需要添加remote，然后自己add commit push等等。但是使用hexo就不用管这些了。hexo可以帮你完成这些繁琐的工作。<br>首先你要下载一个帮你完成工作的工具：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">npm install hexo-deployer-git --save<br></code></pre></td></tr></table></figure>

<h3 id="3-2-Github仓库"><a href="#3-2-Github仓库" class="headerlink" title="3.2 Github仓库"></a>3.2 Github仓库</h3><p>确定你的github已经配置好SSH秘钥了。<br>在github新建一个仓库，取名用户名.github.io，其实你可以不叫这个，随便取一个的。<br>区别在于，如果你使用用户名.github.io，那你的页面访问的时候就是https://用户名.github.io，你要是随便取一个，那就是https://用户名.github.io/仓库名/。<br>建好仓库之后进去，复制SSH链接，记住是SSH链接不是https链接，否则部署时候会失败。</p>
<p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fyE5id"><img src="https://z3.ax1x.com/2021/08/14/fyE5id.png" srcset="/img/loading.gif" lazyload alt="fyE5id.png"></a></p>
<h3 id="3-3-Gitee仓库"><a href="#3-3-Gitee仓库" class="headerlink" title="3.3 Gitee仓库"></a>3.3 Gitee仓库</h3><p>确定你的gitee已经配置好SSH秘钥了。<br>在gitee新建一个仓库，取名用户名.gitee.io，其实你可以不叫这个，随便取一个的。<br>区别在于，如果你使用用户名.gitee.io，那你的页面访问的时候就是https://用户名.gitee.io，你要是随便取一个，那就是https://用户名.gitee.io/仓库名/。<br>建好仓库之后进去，复制SSH链接，记住是SSH链接不是https链接，否则部署时候会失败。</p>
<p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fyVUSI"><img src="https://z3.ax1x.com/2021/08/14/fyVUSI.png" srcset="/img/loading.gif" lazyload alt="fyVUSI.png"></a></p>
<h3 id="3-4-修改-config-yml"><a href="#3-4-修改-config-yml" class="headerlink" title="3.4 修改_config.yml"></a>3.4 修改_config.yml</h3><p>回到你的博客文件夹，找到<code>_config.yml</code>文件，对其进行修改。用记事本打开，拉到最底下</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta">#</span><span class="bash"> 只推送到github</span><br>deploy:<br>  type: git<br>  repo: 你刚才复制的<br>  branch: main #因为黑人运动主分支已经不叫master<br><span class="hljs-meta">#</span><span class="bash"> 只推动到gitee</span><br>deploy:<br>  type: git<br>  repo: 你刚才复制的<br>  branch: master<br></code></pre></td></tr></table></figure>

<p>如果你只推送道github，你就按我给的代码写。如果你想同时部署到多个仓库，那你就按我下面里的写冒号是英文的，冒号后边有一个空格。注意格式否则会部署失败。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs shell">deploy:<br>  type: git<br>  repo: <br>  	github: 你刚才复制的ssh地址<br>  	gitee: git@gitee.com:gao_tengfei/gao_tengfei.gitee.io.git<br>  branch: master<br></code></pre></td></tr></table></figure>

<h3 id="3-5-部署"><a href="#3-5-部署" class="headerlink" title="3.5 部署"></a>3.5 部署</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs shell">hexo clean<br>hexo generate<br>hexo deploy<br></code></pre></td></tr></table></figure>

<p>如果你部署失败了……那应该是你的node版本太新了……卸载从头再来。<br>部署完成之后你的github/gtiee仓库里就有东西啦。</p>
<h3 id="3-6-Github设置"><a href="#3-6-Github设置" class="headerlink" title="3.6 Github设置"></a>3.6 Github设置</h3><p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fyeGRA"><img src="https://z3.ax1x.com/2021/08/14/fyeGRA.png" srcset="/img/loading.gif" lazyload alt="fyeGRA.png"></a></p>
<p>如果，你只向github推送，那么左上角分支那选择main就可以，如果你既向github又向gitee推送，这个时候你的分支要选择master才会有内容，然后点击右上角Settings，进入设置</p>
<p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fyesRs"><img src="https://z3.ax1x.com/2021/08/14/fyesRs.png" srcset="/img/loading.gif" lazyload alt="fyesRs.png"></a></p>
<p>然后选择左下角Pages</p>
<p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fyeWZT"><img src="https://z3.ax1x.com/2021/08/14/fyeWZT.png" srcset="/img/loading.gif" lazyload alt="fyeWZT.png"></a></p>
<p>然后中间Your site is published at xxxxx，那个链接就是你的博客链接啦。</p>
<p>下面Source处，如果只想github推送，选择main分支即可，否则选择master分支。</p>
<h3 id="3-7-Gitee设置"><a href="#3-7-Gitee设置" class="headerlink" title="3.7 Gitee设置"></a>3.7 Gitee设置</h3><p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fymYY4"><img src="https://z3.ax1x.com/2021/08/14/fymYY4.png" srcset="/img/loading.gif" lazyload alt="fymYY4.png"></a></p>
<p>选择服务</p>
<p><a target="_blank" rel="noopener" href="https://imgtu.com/i/fymfXt"><img src="https://z3.ax1x.com/2021/08/14/fymfXt.png" srcset="/img/loading.gif" lazyload alt="fymfXt.png"></a></p>
<p>选择Gitee Pages，进去之后，现在是需要实名认证，然后就可以开通</p>
<h2 id="4-更换主题以及美化"><a href="#4-更换主题以及美化" class="headerlink" title="4 更换主题以及美化"></a>4 更换主题以及美化</h2><p>下一篇文章在介绍</p>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/%E5%8D%9A%E5%AE%A2%E7%B1%BB%E6%8A%80%E6%9C%AF%E6%96%87%E7%AB%A0/">博客类技术文章</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2021/08/13/Git%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8/">
                        <span class="hidden-mobile">Git基本使用</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
	<!--《添加网站运行时间 -->
<br/>

<span id="timeDate">载入天数...</span><span id="times">载入时分秒...</span>
<script>
var now = new Date(); 

function createtime() {
    //此处修改你的建站时间或者网站上线时间
    var grt = new Date('08/13/2021 10:00:00');
    now.setTime(now.getTime() + 250);
    days = (now - grt) / 1000 / 60 / 60 / 24;

    dnum = Math.floor(days);
    hours = (now - grt) / 1000 / 60 / 60 - (24 * dnum);
    hnum = Math.floor(hours);
    if (String(hnum).length == 1) {
        hnum = "0" + hnum;
    }
    minutes = (now - grt) / 1000 / 60 - (24 * 60 * dnum) - (60 * hnum);
    mnum = Math.floor(minutes);
    if (String(mnum).length == 1) {
        mnum = "0" + mnum;
    }
    seconds = (now - grt) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
    snum = Math.round(seconds);
    if (String(snum).length == 1) {
        snum = "0" + snum;
    }
    document.getElementById("timeDate").innerHTML = " 本站已各种夹缝中安全运行 " + dnum + " 天 ";
    document.getElementById("times").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒";
}
setInterval("createtime()", 250);
</script>

<!-- 添加网站运行时间》-->
  </div>
  
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
        <!-- 不蒜子统计UV -->
        <span id="busuanzi_container_site_uv" style="display: none">
            总访客数 
            <span id="busuanzi_value_site_uv"></span>
             人
          </span>
      
    
  </div>


  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  <script  src="https://cdn.jsdelivr.net/npm/tocbot@4.12.3/dist/tocbot.min.js" ></script>



  <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js" ></script>



  <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4.3.1/anchor.min.js" ></script>



  <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js" ></script>



  <script  src="/js/local-search.js" ></script>



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>




  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2.0.12/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"model":{"jsonPath":"/live2dw/assets/hibiki.model.json"},"display":{"position":"left","width":150,"height":300},"mobile":{"show":false},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
